<template>
  <div class="main">{{areaOptions[0].value}}</div>
</template>

<script>
import { getAction } from '@/api/manage'

export default {
  name: 'RouteView',
  data() {
    return {
      areaOptions
    }
  },
  computed: {
    keepAlive() {
      return this.$route.meta.keepAlive
    }
  },

  created() {
    getAction('/api/area').then(res => {
      console.log('------------')
      console.log(res)
      this.areaOptions = res
    })
  }
}
</script>